package com.cc.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
    * @ClassName: User  
    * @Description: 用户信息  
    * @author 新梦想IT学院.陈超
    * @date 2019年7月23日 
MyBatis是一个半自动化的ORM轻量级持久化框架
ORM:  Object relationship maping ?
java Bean - ----->数据库的记录
java类 ------>数据表表
java类中的属性---->表的字段
 “*/
public class User implements Serializable {
	private int id;
	private String username;// 用户姓名
	private String sex;// 性别
	private Date birthday;// 生日
	private String address;// 地址

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    @Override
    public String toString() {
        return "User [id=" + id + ", username=" + username + ", sex=" + sex + ", birthday=" + birthday + ", address="
                + address + "]";
    }
	
	
	

}
